package com.fuqiang.nightshopumsmodel.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Description:积分消费设置
 * @author fuqiang
 * @since 2020-04-14
 */
@ApiModel(value ="积分消费设置")
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ums_integration_consume_setting")
public class UmsIntegrationConsumeSetting implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "每一元需要抵扣的积分数量")
    @TableField("deduction_per_amount")
    private Integer deductionPerAmount;
    @ApiModelProperty(value = "每笔订单最高抵用百分比")
    @TableField("max_percent_per_order")
    private Integer maxPercentPerOrder;
    @ApiModelProperty(value = "每次使用积分最小单位100")
    @TableField("use_unit")
    private Integer useUnit;
    @ApiModelProperty(value = "是否可以和优惠券同用；0->不可以；1->可以")
    @TableField("coupon_status")
    private Integer couponStatus;


    public static final String ID = "id";

    public static final String DEDUCTION_PER_AMOUNT = "deduction_per_amount";

    public static final String MAX_PERCENT_PER_ORDER = "max_percent_per_order";

    public static final String USE_UNIT = "use_unit";

    public static final String COUPON_STATUS = "coupon_status";

}
